//
//  NBNavigationController.m
//  聚超值
//
//  Created by 李智恒 on 16/3/27.
//  Copyright © 2016年 Zhli. All rights reserved.
//

#import "NBNavigationController.h"
#import "UIImage+Image.h"

@implementation NBNavigationController

-(void)viewDidLoad
{
    [super viewDidLoad];
    
    self.automaticallyAdjustsScrollViewInsets = NO;
    
}

+(void)initialize
{
    UINavigationBar *bar=[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[NBNavigationController class]]];
    
    //设置导航栏背景颜色
    [bar setBackgroundImage:[UIImage imageWithColor:[UIColor colorWithRed:255 green:0 blue:0 alpha:0.6]] forBarMetrics:(UIBarMetricsDefault)];
    
    NSMutableDictionary *dict=[NSMutableDictionary dictionary];
    
    dict[NSFontAttributeName]=[UIFont systemFontOfSize:20];
    
    dict[NSForegroundColorAttributeName]=[UIColor whiteColor];
    
    [bar setTitleTextAttributes:dict];
    
}


-(void)leftBtnClick
{
    NSLog(@"asdasd");
}


@end
